<include file="public@header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:url('main/index')}">平台数据</a></li>
        </ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('main/index')}">
            <!-- 门店:
            <input type="text" class="form-control" name="name" style="width: 220px;" value="{:input('request.name/s','')}" placeholder="请输入{:lang('USERNAME')}"> -->
            时间:
            <input type="text" class="form-control js-bootstrap-date" name="start_date" style="width: 220px;" value="{:input('request.start_date/s','')}" placeholder="请选择开始日期" autocomplete="off">
            -
            <input type="text" class="form-control js-bootstrap-date" name="end_date" style="width: 220px;" value="{:input('request.end_date/s','')}" placeholder="请选择结束日期" autocomplete="off">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('main/index')}">清空</a>
        </form>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>平台收入</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>{$total_platform_revenue}</td>
                </tr>
            </tbody>
        </table>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>销售总计</th>
                    <th>会员收益</th>
                    <th>订单收益</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>{$total_member_revenue + $total_order_revenue}</td>
                    <td>{$total_member_revenue}</td>
                    <td>{$total_order_revenue}</td>
                </tr>
            </tbody>
        </table>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>提现总计</th>
                    <th>提现店家总计</th>
                    <th>业务员总计</th>
                    <th>用户总计</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>{$total_user_withdrawal + $total_store_withdrawal + $total_salesman_withdrawal}</td>
                    <td>{$total_user_withdrawal}</td>
                    <td>{$total_store_withdrawal}</td>
                    <td>{$total_salesman_withdrawal}</td>
                </tr>
            </tbody>
        </table>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>可用积分总计</th>
                    <th>冻结积分总计</th>
                    <th>已释放积分总计</th>
                    <th>支出积分</th>
                    <th>充值积分</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>{$total_available_score}</td>
                    <td>{$total_freeze_recharge_score + $total_freeze_order_score}</td>
                    <td>{$total_release_recharge_score + $total_release_order_score}</td>
                    <td>{$total_expenses_score}</td>
                    <td>{$total_recharge_score}</td>
                </tr>
            </tbody>
        </table>
    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>
</html>